package com.isdepci.project.result.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.isdepci.project.result.mapper.OneActivityMapper;
import com.isdepci.project.result.domain.OneActivity;
import com.isdepci.project.result.service.IOneActivityService;

/**
 * 范围1分类（按照活动类型划分）Service业务层处理
 *
 * @author isdepci
 * @date 2023-09-05
 */
@Service
public class OneActivityServiceImpl implements IOneActivityService
{
    @Autowired
    private OneActivityMapper oneActivityMapper;

    /**
     * 查询范围1分类（按照活动类型划分）
     */
    @Override
    public OneActivity selectOneActivityById(Long id)
    {
        return oneActivityMapper.selectOneActivityById(id);
    }

    /**
     * 查询范围1分类（按照活动类型划分）列表
     */
    @Override
    public List<OneActivity> selectOneActivityList(OneActivity oneActivity)
    {
        return oneActivityMapper.selectOneActivityList(oneActivity);
    }

    /**
     * 新增范围1分类（按照活动类型划分）
     */
    @Override
    public int insertOneActivity(OneActivity oneActivity)
    {
        return oneActivityMapper.insertOneActivity(oneActivity);
    }

    /**
     * 修改范围1分类（按照活动类型划分）
     */
    @Override
    public int updateOneActivity(OneActivity oneActivity)
    {
        return oneActivityMapper.updateOneActivity(oneActivity);
    }

    /**
     * 批量删除范围1分类（按照活动类型划分）
     */
    @Override
    public int deleteOneActivityByIds(Long[] ids)
    {
        return oneActivityMapper.deleteOneActivityByIds(ids);
    }

    /**
     * 删除范围1分类（按照活动类型划分）信息
     */
    @Override
    public int deleteOneActivityById(Long id)
    {
        return oneActivityMapper.deleteOneActivityById(id);
    }
}
